﻿<div class="alert alert-secondary mt-4" role="alert">
    <span class="oi oi-pencil mr-2" aria-hidden="true"></span>
    <strong>@Title</strong>

    <span class="text-nowrap">
        Please take our
        <button class="btn btn-link font-weight-bold" @onclick="LaunchSurvey">brief survey</button>
    </span>
    and tell us what you think.
</div>

@code {
    // Demonstrates how a parent component can supply parameters
    [Parameter]
    public string Title { get; set; }

    async Task LaunchSurvey()
    {
        await Launcher.OpenAsync("https://go.microsoft.com/fwlink/?linkid=2121313");
    }
}
